enum Color {Red, Green, Blue}
console.log(Color,"Color");

enum Age {bkpp="19", gun="20", off="21"}
console.log(Age.gun,"Age");


function setValue(value: number): number{
    let a = value
    return a
}
console.log(setValue(111),"123");

// 类型断言两种形式
// 尖括号
let someValue = "12312311"
let strLength: number = (<string>someValue).length;
console.log(strLength);

// as语法

let strLength1: number = (someValue as string).length;
console.log(strLength1);